package com.zrrd.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Schema(name = "CartDeleteDTO", description = "删除购物车DTO实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class CartDeleteDTO implements Serializable {

    @Schema(description = "用户主键", required = true, example = "1")
    @NotNull(message = "删除购物车业务中用户主键不能为空")
    @JsonProperty("user-id")
    private Integer userId;

    @Schema(description = "视频主键", required = true, example = "1")
    @NotNull(message = "删除购物车业务中视频主键不能为空")
    @JsonProperty("video-id")
    private Integer videoId;
}
